import java.util.regex.Pattern;
class RegexExample1{
    public static void main(String[] args){
        String content = "I am noob from runoob.com.";
        System.out.println(content);
        String pattern = ".*runoob.*";//设置正则表达式子
        boolean isMatch = Pattern.matches(pattern, content);
        System.out.println("字符串中是否包含了 'runoob' 子字符串? " + isMatch);
    }
}
